﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class NoPasswordProtectionNotification : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //查询用户密保状态，决定是不是显示提醒信息
        if (Request.Cookies["passwordProtectionStatus"] == null)
        {
            NoPasswordProtection.Visible = false;
            return;
        }
        else
        {
            int passwordProtectionStatus = Convert.ToInt32(Request.Cookies["passwordProtectionStatus"].Value);
            switch (passwordProtectionStatus)
            {
                case 1:
                    NoPasswordProtection.InnerHtml = "<a href=\"passwordProtection.aspx\">完善密保信息</a> —— 我们检测到您的密保信息不完善，忘记密码之后将不能找回，请尽快完善";
                    NoPasswordProtection.Visible = true;
                    break;
                case 2:
                    NoPasswordProtection.InnerHtml = "<a href=\"reEmail.aspx\">邮箱还未验证</a> —— 您的邮箱还没有验证，密码找回功能仍然没有启用，请点击链接进行验证";
                    NoPasswordProtection.Visible = true;
                    break;
                default:
                    NoPasswordProtection.InnerHtml = "位置错误";
                    NoPasswordProtection.Visible = true;
                    break;
            }
            return;
        }
    }
}